fix 1867: The parameter of enum type in bound function does not work.