fix startup errors