fix bug with listmetadataformats