fix readlock panic
Merge pull request #3 from Runnable/fixPanic

fix readlock panic