I'm leaving this here for now so that you can verify the bug is, in fact, fixed on your own quite easily. I will remove it after you look over the pull request.