fix url and GrantType