Fix is_authorized call