I fixed the bug of #11 by applying this patch .
Please review.