a workaround for character replacing