Fix resource rule editor