Merging two sketches - Stack error