Crumbs will only stick when the icing is too hard or sticky. Therefore, to prevent this you need to make a softer icing.