judge reduces custody rights mother jailed