fix dt bug and change wander code