I think attachments are inevitable. The only problem is when someone goes about managing their attachments without awareness or unskillfully. Learning and understanding attachments is how one builds good karma.
To be freed of attachment you first have to understand the attachment then work on it. Sometimes when people try to free themselves of attachment prematurely, when they enter a higher state of mind they will realize their error and with goodness in their heart will return to finish the deeds they set about to do originally. This is why faith in the higher powers and voice is important, the spirit only sets foot on the human form, mind is mechanically anchored to the spirit.