Bug fix for task edit