compensates for lag in shuffle action when passing array to Angular, which was causing duplicate errors