fixed bug characters being sent on resize