Fixed delta time bugs