Fixed wrong variables in determineRiemannStructure

still not working correctly