Fixed call to undefined function