bug in reg