I did a simple object for in loop and the output changes, sometimes it gives result a then b, while expecting c 