fix clipboard on both windows and linux