bug fix:error cause lock