fix prefixBase handling