little fix about cycle flood detection