fixed this refs

@Aseaboyer - bugs are related to comparing against two arrays and not
one