fixed first run error