fixed clipboard processing