Generally you just need to be very generous with the powdered sugar. However, I once was taught that you could actually roll the cookie dough in granulated sugar first before rolling in the powdered sugar. This is supposed to help the powdered sugar hold on better.