Fix printing stats