fix bug register