fixed communities index error - nil class