Fix. some missing attribute on PassThroughEncoder

Fixes #1583.