fixes typo in local variable