Fixed window resizing problem.