fix the issue of loading the same resource of differnt suffixes several times