fixed remove path validation