second part of the bugfix for fix bond/create
bugfix from ray shan from lammps-users