Latest datomic.  Fix protocol logic