Avoid double lock