added condition to deal with cases with no flight result