fixing NULL edit