fix hash representation