Fix a bug that causes slide window not move.