fix bug#412
Merge pull request #140 from comutt/bug412

fix bug#412