authenticate fix