I don't think it's the fence. It looks to me like your plant stretched looking for optimal light. Notice the top few inches of the plant has nice tight growth going on, as long as that kind of tight growth continues you should get some nice colas. I wouldn't worry too much about the lower branches as they tend to be scraggely anyway compared to the top.