Fixed several bugs in the OAuth example