Fix 'Cannot read property 'payloads' of undefined'