Fixed a bug in setPrefix when seting prefix multiple times.