remove useless path