fix TypeError for display.multi_sparse == False