Fixed an issue with scope on CLMain load callback methods