Fix an erroneous function call