fix unauthorized rejection detection