Corrected var declaration