fix markup task "Cannot read property 'source' of undefined"