Fixed #5

I haven't tried out inverse transforms to see if they have the same problem, but I suspect they do. I'll have a go at fixing them if needed.