fixed bug for #198