Fixing isLoading error