fix error when typing "variable =" in empty doc