updated
fixed segmentation fault under Debian Wheezy