fix /metadata handler
Merge pull request #2 from jpf/master

fix /metadata handler