chansrv: fix clipboard crash