fix deserialization of None values