Fix error when changing Lock state.
Release 2.34.