fix lock_guard