fix scope and typo