fixing bug in path