Fixed error in hash1 (from loclass), now it possibly calculates the KSel correctly for actually dumping data