fixed a couple of minor issues