Fix an error with variable declaration where it can sometimes be used before it's set