Fixed var names, typo.