pairs bug fixed for firefix