fixes initial run bug