Fixed incompatibility with dagger

Hi,

apperently dagger changed a few things up, which left this unable to build. Fix was simple enough, so here it goes.