handle zero delta time