Fixing message variable name
Fixing is_a() call