hack to handle assertion error