fixed error when nothing was put in editing line