prevent render loop on error