fixed bug related to #163