Correct rearrangement of alloc threshold