A function has changed and there was an error

Signed-off-by: emanuele <emanuele45@gmail.com>
Fixes some undefined errors here and there while editing messages

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