fix lib readline bug