Fixed duplication in deserialisation due to multiple counting of predicates