Remove /main from path