fixes uniqueness of APs