FIX Corrected bugs in reading/writing root predicates.