fix tasks script