fixed attr_accessor call