Change array_replace function back to its original, properly functioning configuration.