Fixing some minor offset errors in the index template