Fixing MessageHandler error