Add missing dependency on Mode