bug fixing multi array resizing