Fixed issue in chunk conversions