Fix supported loop check