fix access errors