fixed a bug in the engine when running on IIS8