fixed initial authorizing bug