Fixing bug for missing dependency exception