fix linux compatibility for ch6