fixed jquery bug assigning vote value