fix warning about incomplete match