Fixed wrong sum format when it was negative.