fix a bug where locking layer icon wasn't representing the current state properly