fixed int bug in array detection