paste mode fix