Fix authorize