hunting weird exception caused by this patch