Fixed bug with np.all.