Probably should make this exception message more relevant. They actually did remember to resize it (they are calling the resize function, after all), but gave it a rectangle that is probably incorrect.