Fixed startup sequencing bug