fix some warnings of deprecated nimbus