Fixed graph genereting for strange names of task.