fixed bug when the fdow option returned null