fix bug in path