fix encoder compilation