Bug fix. Result is not always defined.