Fix bug for display the title of non-floating tasks and floating tasks.