remove unecessary class mangling, and make sure that paste events set the cursor properly