Avoiding double render after import on failure