Fix on not getting first directory result