Bug in register