fixed bug that prevented messageIntegration to work in tasks