fixed the rendering bug, and changed the req anim shim