Fix a bug of increment and decrement for SP