fix bug in task edit