fixed click error for .each