fix bugs: defs and uses of function names in parent directory is replaced by those of child directory because of using function 'update' in dict