Fixed an Auth Issue when using Mock