Fixing can.inArray call.