Fix code formatting

Fix code formatting around statistics