added fixing of availabilities exceeding interval