Fix formatting error in Task class