Fixed compilation bug under VS2012