I inadvertently connected earth wire to L in bathroom pull cord switch as well as the live wire, I connected the other wire to L1, when I switched light on it worked ok but when switching it off and on again it tripped the breaker as it should, however when I reset breaker light came on and was ok. Why would it stay on and be ok with earth connected to live?