Fix for encoder test failure