Task's path changed from string to array in mongo