fixed error in has_many syntax