Fixed 'convert an array into a hash'