fix for crash when placing stuff into clipboard