fix maximizing on second monitor if main monitor size is lesser then second