fixed bug register