apply patch from [rt.cpan.org #15572]