Worst may be over for Pakistan's Nawaz Sharif