workaround for panics