fixed models issue with attr_accessor