fix issue #126  the way the code was meant to work.