fix ASSO_MASK_ARR related bugs