fixed annoying smartmatch warning in 5.18