dt fixed for Flash, time stepping has a bug