issue #1 don't return document that cannot be deserialized