fix bug #163
fixed bug #164