Fix for dublicated key in hash