fix sign bug in SMSEPS