fixed error in process_ps of change_term