Fixed a bug that did not mark some cells for move.