Fix task prepending problem

Change-Id: Ibf780cc07e3cb6c2dbbc8ce8f0aa079b8d9cb0ad