Use let instead of var, fix build