Fix resource editing.