fixed bug on message class type inspection