Don't throw errors when resizing the window