fixed typo accessing variable