Fixed bug for Lattices with conditional check to OpenCG compatiblity module