fix a inconsistent of function signature