fixed ResourceWarnings