fix problem with compartment representation.