fix: fix bug on scope