Fixed minor bug in checking STEM/Sim limits
Merge pull request #54 from ADyson/Fix_STEMlimits

Fixed minor bug in checking STEM/Sim limits