updating typo in funcs.py that was causing a crash