fixed a bug in register