fix bug in edit link