Bug fixing when no messagetype specified