fix prefix overwriting