fix median must be number