fix local variable type