fix exhaustive match compiler warning