resolve errors of text justification