Fixed broken Authorize method