small fix in resource.h