Fix error undefined function.

Signed-off-by: enyst <engel.nyst@gmail.com>