Fix wrong attribute ref and default publishing value