fix bug: invalid id - scope