Fix small bug with hash computation on client