fix editting bug