Fixed detection of future migrations combined with 0 resolved migrations