fix block scope