fix mapleader with global variables