fix(client) loadDir: do not change dir after fail load