Fix static type inference [ci skip]