fix non-iis case