fix typo in isFunctionReference