fix access function error