quick fix for spinlock