Fix hash in constant term