Fixing predecrement to post decrement