Fixed locking code