Small bug fix to fix problems with new auth method, which were only exposed on real use