remove two deprecated package depend and fix a warning

a small fix