ticket:455 fixed sample_metadata_menu_item function