rescue RuntimeError in render