few fixes in metadata.rb