fix BIG bug in orderedsignal.py