Protect against out of range locks