fix one function call bug