short paths in debug, fix type inference [ci skip]