clean variables between actions switching