Corrected the has_many through association