fixed random access data bug