fix bugs related to font-weight