Fixed lock modifier issue.