Isn't `when lambda` a 1.9+ only feature?  I would not expect this to work properly on 1.8.7.