Fix resize issue #8

Fixed issue #8
please pull :dancer: