fix for https://rt.cpan.org/Ticket/Display.html?id=86592