fixing has_many through call