fix local variables