bug fix: if a parent class doesn't define lattice, we don't need to check whether...