Fixes using wrong variable as default for next config get() call
Removes unused code