fixed selection rendering
fixed inserting of whitepsaces