Bug fixed in register new permission.