fix readlock panic