fixing deltatime