merge paths for attribute and relation, and fixed path bug