fixed bug in TO-MOVE counter