CompoundPath bug-fixes