Fix possible exception