fixed a few problems with lammps