avoid registration of the same permit multiple times