fix bug edit