fix bug
change lock