fixing setPath mistake