Fix authenticated check