double run bug fix