bug fix allowed prefix validation