fix some UI library errors