fix helper js exception when no matching