fix data scope