Fixed inArray problem