Bugfix to stitch function