fix first char being lost. fixes #196