small fix for preventing text to be typed in