Remove lock code