Fixed bug with particle XYZ coordinates