insert variable scope fix path