cursor shows before typing