debug bug of getcfunction