test and fix the move detection