fixed a compiler bug not checking the lower bound of block depth in find_variable_backward_with_word()