fixing undefined local variable or method block in honor_local_mode