Fix formatting index