fix double run bug