Fixed bug with missing params in get_as_flattened