fix access bug