fix IrrationalVersionError exception