Cleanup hash a bit.