Fixed atom ordering when writing poscar