The following post is from oetb, addressed to hoya.
Hi,
What is Intention in Kamma?
As said in the article, the intention is a key factor for kamma. Your intention was not a bad one, in fact, it was a good one. Then, I think you shouldn’t worry about it.