fixed decrement and increment error