Fix for window moving problem.