Fixed a couple of static code analysis suggestions.