mask bad write_mem errors