Fixed OSError verification