Fix crash when resizing

Unsure when this broke -- warrants some research