fix smartmatch warnings