Sort:  

When that happens, I find putting my hand close behind the object yet touching it helps the camera to find focus. I do it often with macros like that.

Nice tip! I will give that a try next time.