Problem to minimize a window