Fix for VS2010 Code Analysis bug