fixed broken resource validation