Fix issue when using encoding on prefix packed field