fixing bug with broken dependency