Does this point the right direction? It seem to me that you'd want +1 here and -1 in the other case. Am I reading it wrong?