Fixed issue with the minimization of the window