Fixed window maximization issue