fix swapping allocator to allocate the in-active page