a bug in generating spin-orbital npdms