fixed bug with create task after invalid data