fix the pasteboard bug