fixing serialization

Signed-off-by: kamyh <deruazvincent@gmail.com>