Simplify some indices