Check the script editor to see if it shows any kind of error. There may be some type of input already on the cylinder causing problems with the lattice.