fix ropContext null bug