Fixed huge bug in the big-stack lock section
Should fix all occurences of the bug...