fix bug in run_vasp