Fix Bug on Resource layer