Fixes inserting text