bug fixed in register