small fix extract_parameters