fixed bug when result is null