fixed issue where emergency light control count was wrong