Fix clipboard crash