md fix with header variables