fixed render loops.