fix assertion error in display