remove old tmp file to avoid dup entries