Your template NO molecules are not placed at the origin of the coordinate system, so your translate commands don't put them where the water molecule was.
Try adding this line before !PICK A WATER ...
coor trans xdir -0.064 ydir -4.485 zdir -17.134 sele segi NO end


Lennart Nilsson
Karolinska Institutet
Stockholm, Sweden