Fix typo var -> val