Fixed incorrect startup order.