Fixed error when load some resources.