fixing bugs regarding unset color and set running variable to true