Fixed an issue on format task (2)