fixes authentication for index