fix a log of style bugs