fix dependency when using nightly