flag to fire error only once