Typo on var name `average`.