fix for numpy arrays not being sequences.