fixed bug in lammps