[TIMOB-15960] Fixed JS objects getting wrong values