Resource bugfix