fixing bug with blank editor