Fixes issue #496

Simple fix for #496, which seems like a typo error. Credit for fix goes to wasamasa on irc.freenode.net #emacs, who found the error while I was flailing about trying to repro :D
Merge pull request #497 from ravaa/master

Fixes issue #496