fix bug with deserializer