added missing unlock