Fixed typo in local var name