Fixed reference to undefined function