fixed bug in recursive resource decoration method