Fixed small problems with has_many in models