That's a completely normal part of flowering, weed is an annual plant so when it's flowering it's also getting ready to die, it stops sending nutrients to leaves it doesn't need anymore so it can concentrate all it's energy on reproduction (bud production).