Used wrong var in max size