fixed bug with app not redirecting on first authorization