fix local vars