Also, consider adding a base layer of thread before trying to attach the foam. You can even put a dab of super glue on the thread before laying on the foam. This should solve your issues.

Jim Smith