avoid preload resource error