fix #95 (thanks jonatkins)