fix resource validation error