Order of statements fix.

Hi, I have no idea how it could work with the original ordering of statements. The "track" variable was used before being initialized.