This will decrement once per shell, probably not what you want? If this is a bug, when you go to fix this, try writing a test first that makes it fail, then fixing the source.