Fix bug with Haskell's problem 55.