fix right_click+paste issue