Fixed a few ResourceWarnings.