Minor bug fix

Fixed a bug where strCur & pnlCur can be set higher than strLim & pnlLim