fixed a bug in saveTask
Merge branch 'composite-adapter-fixes'