update lock, fix #5
update