Fixed a bug for task list's right-click and a cleaned up syntax