fixed a couple of minor problems