fix setting magit custom variables