appdomain loading bug fix