Fix call to undefined function