Fixed a big with indexes and joins