fix for space when text inputing