Fix for arrays being updated too often