fixed the authorized bug