fixed: wrong var for array_diff
fixed: using wrong variable