fixed inserting of whitepsaces
fixed cursor blinking