Fixing async file loading

(regressed after 2d0cd3f35736fc0b40de1e0a)