update scope to avoid minification error