Fix release task bugs