Fix attribute initialization