Fixed bug with deltaTime