clean up
fix diff when changing from element to empty array