fix an undefined callback call