I forgot to mention that I define in the input to lamps:
variable fx atom fx variable fy atom fy variable fz atom fz