Update unlock.cpp