The problem with your wiring is that you're using the ground line from your ac as a neutral. If you have good ground and wiring, it's not a functional problem (as you've found), but if not, you've now put up to 120V on that line. Worst case scenario, you kill someone or burn your house down...