Fix bug with empty serialized map (of PIs)