typo variable error fix