Fix regression bug in rendering current prefixes after a new prefix added