fix odd number of elements in hash assignment