BugFix: Fixed lock exception