Fixed startup bugs caused by gtk regressions