bug fix for startup