Don't use var multiple times for the same variable.
Again some IntelliJ foo...