fixed edge case for availability gap fixer