Fixbug: Update interface detection logic