fixed deadlock in reg controller