Fixed missing check callback function