fix: destroy scope when modal is deactivated