fix rich text negative scale error