Remove onafterprint