Fix bug with async loading after deploy