small fix of CheckFunctionById function
Regards
p.s. Alvaro, please, send your patch and I'll merge it