Fixed DetermineRiemann