fixed major bugs in CategoryPageRandomize