fixed weird startup errors