register method fixed.