first time run bug fixed