Again, fixed the maximize/restore button when the window is restored by dragging the title bar.