Fix function check.