Fixed resource names when removing them