Fixed simple type conversion bug that Predmore found.