Once you've got the spark arrestor crammed back up into the pipe, run three self-tapping sheet metal screws into the pipe (spaced evenly around it) under the lowest point of the mesh. This will stop the mesh from falling back down into the fire box, and still allow you to remove it if you ever wanted to.