small singleton bug fix