resource load bug fixed