fix $.each() callback value type bug