Fixed the issue related to the interface during the serialization