fix memory corruption in hll handling