Fix freeze with PathFindingMovement since commit 311cb9b.