fixed has_many statements