fix broken scope command [fix #697]