fixed disconnected compounds problem.