make it work with 0.6.5
Merge pull request #1 from joscha/patch-1

make it work with 0.6.5