fixed the typo

the function failed due to a typo