Fix auth problem (issue #4225)