fix bug about GetOpenDir