fix delta time