small improvement of availability gap fixing