Fixed Module type deserialization