Fixed message class deserialization