Remove outdated prefixes before add new