bugfix on startup