fixed $.each