Fix debugging

What it says on the tin.