Fixing deltaTime and power of two conversion