fixing the 'matches' loop in import parameters