correct rid.num NULL error in runing on whole Genome scale