Fix serializers in task

Change-Id: I6e378a9de052eaa749110634a04beecd1cd15f6e