Fix register method