fixed attr_accessible bug