Fixed first time run bug.