fixing a bad move bug