Text resize fix

This fixes issue #10