Fix some conflict error
Modified the task parameter to return default value if it is null
Modified Task constructor with no parameter that help set default values