fix broken hash iteration