Fixed error with undefined function.