Attempts to fix window size.