fixed bug #5 (contributed by my2iu)