Fixed resizing. Kinda.

Closes #9. I'm not sure how fool-proof this fix is.