Fixed bug in 1 frame delay