Fixes using last item in stack just disappearing without effect
Merge pull request #171 from aimozg/master

Whoops, this was a stupid bug on my part.