Removed extra enumerate() from Query.setup_joins()