Bugfix in castep geom opt.