Added better error handing for the invalid version bug