Fixed authentication issue with sorcery