Work with cassanity 0.4.0 and 0.5.0.

... else I get this error:
https://gist.github.com/spraints/03fd6ce77c78fc05bfb5