prevent resource load fail