fix bug in metadata recipe