Fixed remove function in ArrayUtils