fixed bug#26

fixed bug#26