fixed a few starting up errors