Fixed minor bugs with OAuth module