fixed a few minor issues