Fix undefined function error

method doesn't exist