typo fixed, wrong variable referenced.