Driver overwriting driver

I use Driver three times in my code in the program where all my tests run I use protected IOSDriver _IOSdriver;
in my sitemodel I use public static IMobileElement GetElement(By by)
{
return _IOSdriver.FindElement(by);

and in my library I use protected static AppiumDriver _IOSdriver;
I believe some of the later 2 are overwriting the driver command from Program. Is there any tweak to fix this it runs but not the way I am intending it to do?