Fixed resource errors