bug #98 fix errors brought about by previous change