Fix resource validation