fixed bug in reg style