Fix wrong attribute usage