Makes migration list detection more robust