Fix the spin lock