fix path related bug