I think this patch could fix the bug.