Converted the IOErrors i missed before