Fixes a typo in core variable setup if statement.