Fix assertion error.