Fix import when matching messages is empty