bugfix for register process