fix deletesample