Corrected silly buffer unlocking bug.