fix availability gaps before aggregation