Fixed major path bug