fix error in scope