Fixed a couple of undefined errors

Signed-off-by: emanuele <emanuele45@gmail.com>