inarray issue fix