correcting error from oauth2 module