Fix visible lock variable