Fixed a potential lock.