fix random accessor