Fix a crash when doing the first piece move.