fix bug on task creation in lines controller