Fixed errors in function Greeteng

Signed-off-by: Goodwin <al.gavrylov@gmail.com>