Fixed minimizing issue.