Fixed a mishap in greet function