fix authentication exeception on init