fix entities serialization in notification