Could add `np.intp(1)` to fix the type.