better handling of first character typed. fixes #196