fixed iterative bug with js issues