I like using Elmer's glue when mitering corners. I'll press a 45 degree angle on one end, add the glue to the edge and then press it down to the other end, then go to the machine to stitch it down using the fold as my guide. I also starch my fabrics heavily so it keeps them from stretching most times so rarely will have I waves in my borders.