fixing decrement error
found decrement error.