fix multi-threading issues on start-up page compiling