fix iteration overlap detection issue