fixed a couple of minor defects