Fix accidental var declarations