Array cell duplication error fixed