Fix assertion error introduced in bb9d7879.