[#392] Fix pairs not inserting after skipping out of a pair