Fix electrical diagram bugs