Remove unnecessary path