Fixed possible exception.