fixed a cursor bug and removed the input source text