Changes .format indexes to be compatible with 2.6