fixing bug in metadata