Fixed castep geom optimiser to update the structure properly and not overwrite.