As long as there is a welfare state, the problem will persist. The pull factor will there be forever, if not pulling foreigners, it will still reward doing nothing and living for free. (Welfare, state workers, bureoctats, police and other ineffective state monopolies living from transfered money)
As long as we pay taxes, the government will pay people for votes.