fix message error on register