bug fix for splitting pairs