Fix lock type input.