Fix order of authenv