correcting .lock bug