getDir on document after setDir returns ""