Fixes in hash index insertion