Fix subgame path problem, debug mode