Fix stats fn