Fix alias detection