[FOLD] fix allocs, broken compare