fixed startup errors