Fixed issue causing this to not work in hosting.