bug fix in clipboard paste