Fixing negative j index in read hash