fix the access bug