Bug fix in the authDelegate