fix data access problem