Anomalous quenching of the remanent resistivity in YBCO ceramics