fix startup issues