fix index error with get_anonymous_parameters