Fix foreign dependency